home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.7 / object.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-29  |  486 b   |  27 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <d3dx9.h>
  5. #include <vector>
  6. #include "debug.h"
  7. #include "mesh.h"
  8. #include "camera.h"
  9.  
  10. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  11. void UnloadObjectResources();
  12.  
  13. #define MECH 0
  14.  
  15. class OBJECT{
  16.     public:
  17.         OBJECT();
  18.         OBJECT(int t, D3DXVECTOR3 pos, D3DXVECTOR3 rot);
  19.         void Render(CAMERA *camera, long &noFaces, int &noObjects);
  20.  
  21.         MESHINSTANCE m_meshInstances[3];
  22.         int m_type;
  23.         BBOX m_BBox;
  24. };
  25.  
  26.  
  27. #endif